package com.yingxin.yxerp.module.sys.entity.enums;

public enum DingChatType {

    TEERBB("TEERBB", "任务执行异常提醒日报表"),
    ;

    private String type;

    private String typeName;

    DingChatType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static DingChatType getEnum(String type) {
        for (DingChatType i : DingChatType.values()) {
            if (i.getType().equals(type)) {
                return i;
            }
        }
        return null;
    }
}
